import Vue from "vue";
import Router from "vue-router";
import Home from "../views/Home";

Vue.use(Router);

export default new Router({
  mode: "history",
  routes: [
    {
      path: "/",
      name: "Home",
      redirect: "/index",
      component: Home,
      children: [
        {
          path: "/index",
          name: "index",
          component: () => import("../views/Index.vue")
        },
        {
          path: "/bid-notice",
          name: "bidNotice",
          component: () => import("../views/Bid-notice.vue"),
          children: [
            {
              path: "/bid-notice-1",
              name: "bidNotice-s"
            }
          ]
        },
        {
          path: "/subject-activity",
          name: "subjectActivity",
          component: () => import("../views/Subject-activity.vue")
        },
        {
          path: "/policy-laws",
          name: "policyLaws",
          component: () => import("../views/Policy-laws.vue")
        },
        {
          path: "/news-information",
          name: "newsInformation",
          component: () => import("../views/News-information.vue")
        },
        {
          path: "/industry-trends",
          name: "industryTrends",
          component: () => import("../views/Industry-trends.vue")
        },
        {
          path: "/brand-list",
          name: "brandList",
          component: () => import("../views/Brand-list.vue")
        },
        {
          path: "/company-publicity",
          name: "companyPublicity",
          component: () => import("../views/Company-publicity.vue")
        },
        {
          path: "/value-service",
          name: "valueService",
          component: () => import("../views/Value-service.vue")
        },
        {
          path: "/vr-exhibition",
          name: "vrExhibition",
          component: () => import("../views/Vr-exhibition.vue")
        },
        {
          path: "/meet-exhibition",
          name: "meetExhibition",
          component: () => import("../views/Meet-exhibition.vue")
        },
        {
          path: "/about-us",
          name: "aboutUs",
          component: () => import("../views/About-us.vue")
        }
      ]
    }
  ]
});
